package com.thyme.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.thyme.system.entity.WytWaybill;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface WytWayBillDao extends BaseMapper<WytWaybill> {
    @Select("SELECT * FROM wyt_waybill")
    IPage<WytWaybill> getAll(Page page);

    @Select("SELECT * FROM wyt_waybill where id=#{id}")
    WytWaybill getById(@Param("id") String id);
}
